package com.chenfan.common.vo;

import java.io.Serializable;
import java.util.List;

public class BaseResultVO<T> implements Serializable {

    private static final long serialVersionUID = 6850285129480130111L;

    public BaseResultVO() {
    }

    public BaseResultVO(List<T> resultList, int total) {
        this.resultList = resultList;
        this.total = total;
    }

    public BaseResultVO(T result) {
        this.result = result;
    }

    /**
     * 对象集合
     */
    private List<T> resultList;

    /**
     * 返回单实例
     */
    private T result;

    /**
     * 返回总数
     */
    private int total;
    /**
     * 总页数
     */
    private int pages;

    public List<T> getResultList() {
        return resultList;
    }

    public void setResultList(List<T> resultList) {
        this.resultList = resultList;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }
}
